Fixed small bug hampering legacy imports