bug getting object size