fixed some bad output