fixed wrong behavior