Fixed issues about cascade type