Fixed code issues with insight.sensiolabs.com