Fixed error when compiling without optimization