Avoid undefined variable notice