Fix program links classes in wrong order.