fix type -> lowercase