fix for auto restart bug
https://addons.mozilla.org/en-US/firefox/addon/memory-restart/reviews/566676/