Some more bug fixes

Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>