Fixed a small mistake in type module, which completely broke everything.