fixed errors in controllers