Fixed bug with parse_types

Signed-off-by: Elliot Condon <e@elliotcondon.com>