remove unnecessary fragment