Add relative construction error and fix a minor bug