fix invalid assignment to status