Are you sure you're not locking into the "ventilation position"?
If you look at the catch, there should be 2 slots and when fully locked, the mushroom bolt on the window should lock into the internal slot.
Debris can prevent locking in this position, so if that's the problem, give it a good clean and try again.