fixed queue initializtion problem