Fixed an error when no single key is configured