fix release
dealing with empty array values, this fixes #6