trying to fix strange erros on attack