Fixed bug where multiple classes had a static parameterless function