Fix logic error in deprive