fix for static methods

fix for static methods