[Bugfix] normalize return function() {} to default