fixed but where there is no contents in the buffer, exception was thrown
fixed issue where param indices might be set but empty