Fixed bug if types not specified.