fix: avoid flickering errors