fixed insert bug for user table --KW