Correct error with use of sizeof