Fix issues with ID's outside of expected ranges, Fix #423
Prevent crashing from negative ids ( fixes #421 )