Fix bug where inputBox would give undefined as it didn't exist