fix no method error rescue