fix for 0 based text values
upped version
upped version