Fixed a bug that made updating user types impossible