[cube] fix types.patch