Fix in problems when compiling in Release Mode