a fix to the js