fix variable decl