fixed some issues with id being 0 integer throwing false