Fixed a bug: calling non-void method as void