Fix issue on relative path for inheritance