Fix constructor and member declaration check.