fix weirdness of declarations with function id.