Fix for #109. Prevents negative integers being specified for number of instances.