fixed plot selection out of bounds bug
completed pub