bug fixing for $connector