Fix for sub directory uri