fix a bug

javascript is null