fix curtain problem