bugfix for CROSSING = False. Finaly working