fix bug and apply dial