Fix error when updating user locations