Fixed a 15bit vs 16bit issue