Fixed small bug in default controller