fix crash with scope buttons and hide cancel button initially