Fixing incorrect method call