fixed broken fragment implementation