Fix hash params and replace public_send to send for 1.8 compatible