fixed problem with build in release configuration