fixed references size in storage