attempting to fix the bug