Fixed issue with flashing the core