fixed caps bug