Fix scalar compound type issue