fixed 2D int casting error