possible 'not integer value' bug fixed