fix #12 nil feed_type problems