fix -optimized code