attempt to avoid redenring issues