fix issue with creating separator elements