Bug in logic to determine whether module member access or module definition access