minor code style bug fixes