disable official walkpath..if your between an obstacle you can only do no more than 14 walk path cells beyond that you cannot go to that cell...
its an npc problem..you must change close to end if your using a script without dialog..because its more appropriate to use end than close..