Fixed cast to byte. Fails on incorrect queue nuber