working around bug