Fix problems with gadget enable

Change-Id: I513f2ca9e012b0f2e22973aa49af7a4ae8493dab
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>