fix array bound