fixed ui offset problem