found solution for layer flicker