threads, design, out of bounds. fix

fixed running a  thread more then once cause force close. fixed out of
bounds exception.