Bugfix: json string comparison and Bugfix: check index on Home controller.