Fix tile access bug