fixed bug where this was used in static method