Corrected comparation to avoid double edition check