fix curtain overflow issue