#537 - fixes type error