fixed prawn 1.0.0 compatibility