fix #1 Can't set path after gf

This patch will fix #1