Fixed bug that would cause data to not be sent to the server