Fix searching for too long