Fixed crash in menu after mouse cursor click, removed dead code (2D)