Fixed bug when status wasn't open or closed