fixed clipping bug