Fix queryingby username action in admin