fixed the "NULL" bug

fixed a bug where null vars were executed to main screen