BUG! Royal pawn putting itself threatened by en passant

Sort:
GM_Sacrifice_The_Knightt

Once I was making a variant, and when I tried to play it, a royal pawn has a legal move to push 2 squares and expose itself to be captured via en passant. The position looks like this (All pawns on the board are royal

The pawn just went 2 squares, and the other pawn can capture it en passant. After that, black didn't lose. the game continues. Please chess.com fix this bug