Fix for logic error, when magnitude is not null but magnitude error is