Fix typo for methods/statics

General typo that raised an error only when no methods folder existed