Fixed Shim bug in OptimusJS 2