condition is not executed when latitude and logitude it is zero