fix curriculum lesson delete logic