Fixed a problem that fail to local planning