out of bound texture exception fixed