fix a bug when missing the "static" keyword