Training your bird should be regular and consistent. Do not allow bad behaviour on one occasion and then try to discourage it later. A regular routine when your bird knows what to expect each day will always be more successful than an unplanned regime.