resolve relative path error