fixing for bugsense
https://www.bugsense.com/dashboard/project/56cc8f6f#error/108728134