value tab index error corrected