Fix coordinates decoding