tweak to avoid exception