fixed problem with bad reallocation