fixed warning when compiling for release