Fix flash-setting bug in current user check