bug fix: if lat == 0 -> write no data