fix bug when point out of range
trying class