trying to fix or at least catch this annoying bug