Fixed a bug in the client causing tasks to not be allocated under certain situations