fixed setSourceState()