[Delivers #83359318] protect x and y from being set to NaN.