[Fix] Bug in file order and build process