fix compact mode