Fixed a bug where not including a type resulted in an error