Fixed error with sizeof use