fixing -g install issue