Fixed latlong
Fixed bug in rules enigne