resolving missing key exception in web app