Fix implicit any warnings