fix synchronising file in sidebar