record length bug