This worked well. Thanks but I suggest you to fix this code permanently in your plugin itself. Many of the users are facing the same issue.