Alright, so I started playing a save again. I started this save in august with your mod, and it worked fine. Reloading recently made it so that it would crash (railFunctions:43, attempt to index field 'railNode' (a nil value)), so I changed the file to check if both accu and railNode existed before deleting them, and now rail poles no longer connect to the rails.