Fixed bugs

Fixed: http://jira.qalight.com/browse/BUIL-51