bug fixed for osgi