Fix static method error