fixed bugs in ventas/ctp