fixed clearSpace