Fix bug with default js