fix bugs when jsController is not set