Fix issue where zero value was causing script to fail