added a fix that was breaking the magazine logic