fix key error on empty cart