fixed some issues

Signed-off-by: Kulamagal Mahendrarajah <kulamagal@qi-interactive.com>