small bug corrected in sgdsvm core.c