fixed a bug in geodecoder and in looking for flat filtering