Fix load API to accept unload without input - #342