extract path bugfix