fix error for anon users