fixed release mode bug