fix wrong doings