Fixed horizontal screen resize bug