fixed error with not finding id in some cases