Fix for writeParameter.