Fixed public machine image search(removed unnecessary code block).