fix bug with anon users