fix error with remove formula