fixed an error in the default controller