another small fix for the objects offset problem. also included the null character in length calculation for correct offset calculation.