Hi Rio, it was already mentioned on the forum by Mr. Hanes (#2445) that it is possible to castle while king is in check. Same happened in game #2664 (http://www.littlegolem.net/jsp/game/game.jsp?gid=2664&nmove=17). I do think that it is a pretty serious bug, therefore posting on the top to the Forum. All the BEST!