tile grid out of bound error