Fix load of variables when app enters background

Signed-off-by: Miguel M. Almeida <miguelcma@CMA-Retina.local>