fixed issue when weblaf is disabled