fix some bugs in APRS