Fixed deprecation issues in ColorBox