Fixed issue with opening canvas in new window