fixed tile sum bug