Fix typo that will cause crash on resume