Fixed fragment bugs