fix error without user object