remove stupid sql errors