finally fixed attacking