fix for issue # 50: merging multiple type