Fixed send function