fixed issue with queue operating as a stack