Fixed optimizing-Bug