Fixed a bug on BugSense initialization