fixed issue with autoboxing