cleaning and fixing the damn inventory bug on admin page