fixed NoneType error for masked array traces