fix for last path in tabs