Fixing bug preventing static mock library from being written in the right.