fix no method error
specify raised error, to exclude NoMethodError :)