fixed problem with release build