resolve undefined method author erros