Fixed bug for length of customCode