Fixed clock issue when minimising and maximising app