Fix hiding cancel button stop weird bounce.