fixing bug with removing equation component