fixed crash in fargment changes