Make sure the prepare method is successful
Fixed method and class name issues