fix scaleMatrix