fixing script properties to return default value