Not displaying the status correctly