This is a fix of Top Level Categories plugin for Wordpress 3.1. and above.