Adding the missing dispose
WARNING: source code is being modified for testing purposes only