fixes the unknown id issue
fix crash on missing id