Fix bug where null value is used for an argument