Fixed add cancel button work on first time