fixed bug with cms keys, content isntance size and input stream