minnor bug fix