Fixed send function.