Fixes fatal error when quick search was used