Fixed unsafe size calculating