Fixed errors in controller fragment