minor code fixes for shop