fixing bug with removing component when fixed component in place