fixed problems in queue.coffee