Fixed a static bug in the framework