Engine dequeue method bugfix