fix for cast where mac isnt returned