Fixed crash when changing display modes (#237)