fix error when compiling