Fixed #46: Fatal error when running self-update