fixed some minor issues from controllers