Fix register static method