Fixed issue with method calls within objects