fix error on punch#type due to rails' handling of sti