fix #35 Process types as expected