found the root cause of this bug