Fixed problem with param being set to null.