fixed a crash when no parameters are specified