fixed crash when using cd image