problem with as late as possible constraint