fixed click outof bounad error