smallish bug fix