Try to solve a bug by logging some initial states.
Attempt to set an initial activeItem if one isn't found.
Quick bug fix for parseInt.
Fix a typo in the previous bug fix.
Fix a typo in the previous bug fix.