Thanks for the report! I just talked to the developers and they say this is actually a bug in the game itself, so I've filed a formal bug report: https://forums.factorio.com/viewtopic.php?f=7&t=66572 and will hopefully be fixed in later versions of factorio.