fixed 500 error because query don with user filter when user was null