fixed bugs with parsing qualified class names

Change-Id: I8cacf85e6b42443ee8bb33300f5e4573ec34a74a