fix status displayed as undefined