nil controller fix