Fix bug calling sidebyside function