fix output for ugly corner case