fix bug on file relative path