Applied this patch made by @uzi18 https://github.com/esp8266/Arduino/issues/4061#issuecomment-368273656 It is now included in all builds