corrected display modes bug