fix bug in flags table with resolving user