Fixed bug in buffer allocation

Fixed bug when allocating buffer in KiaraProxy.stg file.