Base: Bug fix with send_to_os function