fixed a bug that was introduced with #460