Fixed wrong allocation size