Fixed the linking order