fix contrast id when problem with the space occur