Fixed wrong openings searching