#4 Fix for deprecated method call

This fixes the control panel issue.