fixed the fatal error, caused by an empty of games database