Bugfix in inline js