Bug Fix Reference Before Assignment