repair space and label parameters