Fixed an issue with methods with no parameters not working.