#58. Fixed issue with dequeue