fixes a hidden bug