fix bug with removing a param as if it were a var