bug fixed

getNextEntry free bugs.