Queue tree wasn't being displayed in the correct order