fixed fatal error when trying to use tools::getValue