add a workaround for old cascade files.
add a fix for loading old cascade file from memory.