Fixing so it wont crash if a table doesn't exist