Fixed a memory error with deleting station records.