Fix loading larger than 64k firmwares