fixed bug with identical fragment check