fix  bug509