fixed error in queue: lenght -> 16bit