Memory bug fixed

The array should be a variable inside the type and not a member.