Fixed "context undefined" in score_frame