fix available credit update