Fix user resource bug (must write test)