Changed call order of libs