Fix dec bug