fixed compile issues