quick fix for dialog at final fragment