fixed some Compile issues