Fix some stupid errors and add size attribute.