Fixed bug with accepting tasks.