Fixed bug if advantage is exactly 0.