fix basename