fix bug in dp