Fix Rails' handle_expired_entry