fix issue#16 with typeguard