Fix Fail in goto function