fix wrong behavior.