fix modal partial path problem