fixed bug when build type is set to release