minor code error