fix valid fragment