fix stupid bug that should have been seen earlier