Fix error in some controllers