fixed inner bug