Fixing case sensitive query hacky