fix bugged amendements in some cases