Fix opening project throwing error because it was trying to print an undefined var