Fixed bug in attack coefficient