update
bug fix for inital shape shape out of range.