fixed opened dialog while loading