bugfix: empty function in init cause shell failure