- Fixed an error which caused changes in material parameters to not been synchronized properly.
- Added some debug messages (to be removed).