fix problem with remove vspace code