Fixed build issue when building in release mode