[BUG] Invalid types are mapped into 'any' which is not valid