A goal should count if the ball crosses the line prior to a shooting space call. Don't take the goal away in order to retake the shot.