Error fixed for Leaves controller. Scopes have been changed of user model