fixed onCompletion callback for media players