fix operations bug