Fixed hibernate instruction order.