Fix for sugar old build