Fix display inversion (fix #3)