fixed CreateMatrix16 method