fixed fail when compiling