fix behaviour when module has no rest elements selector on the third phase of the assembly was stopped by wrong condition