fix warning treated as errors [Thanks abcdjdj]