Fix crash when private constructor