fixed last path issue