Fix bug if we're trying to write array as param