fixed out of bound box error