fixed gcm-bug in queue.js