fix compiler crash due to inconsistent method signature