fix bug with empty screen