fixed broken slug to id lookup logic