fix algorithm image