fix bugs in new feature for warnings

and new feature alpha away from zero