Fix "non-void function should return value" error.