Fix error of not declaring static in header file