Small bug fix for custom instances.