fix error while invoking