Fixed wrong size generation