Credits onResume bug fix.