fixed abort condition