using ->storage instead of (array) typecast, fixing the registry bit store