fixed removed row condition bug