prob fix for detached fragments