BUGFIX: support nil params