Fix notifications and Exception on invalid api keys