Fixed oscsend due to incorrect type checking