Fixed station removal

This should be the final fix for the problems that were happening with
JSON files corrupting.