fix for js error that I seem to be getting, should investigate more why I get it