Fixed thread safety issue.  View now works correctly in later versions of Java.