Fix static method bug