fixed bug that might cause problems in future in handleEvent() in oglmwindow