I understand you get a NaN when setting a string to a number. However, I am not doing that. The only time the value is set is when the global is declared with a default value of 0. What is interesting is the second time I run the layout, i.e. title screen to game back to title screen, It is no longer a NaN and set to 0.
The capx was something I created instead of providing my whole project. It wasn't the problem I thought it was and that capx proved it. After debugging I found that the last global variable in my layout was returning a NaN. On the second time the layout ran it returned 0.