Tried to fix flickering