Fixes #5291 Adding new method clearCustomVariables()
-> please use this method to make sure your custom variables are reset

 Thanks for the report!