fixing query to send to all
fix send to all parameter