random filter bugfix