fixed error if customData is only a value