fix construction error