fix to shift magnitude error