fix chopping bug