fixes for placing task on queue