fix a lovely bug