fix incorrect use of this in static method