Fixed a parameter allocation bug