fix bug with in_core cut
fix bug with in_core cut