Fixed a bug in figure path