Fixed small bug with compact mode