Fixed a bug in the user.module patches