Fixed issue where refreshUser ended in 500 Exception