Prevented app from crashing because of an invalid ID