fix api directory path