Fix errors when compiling