everything is OK on 0.4.5 after updating to 0.5.1, generating will throw an error. I don't know why thanks 
everything is OK on 0.4.5

after updating to 0.5.1, generating will throw an error. I don't know why
thanks