Fixing find_by method declaration