In a journey of self discipline there are moments when you are really screwed up the process.
You are slack, relapse the old, bad habits.
Don't beat yourself up!
Get familiar with triggers which recall those habits, then stop. Take deep breath and analyze. Soon you will overcome them.