fix undefined variable path