fix entity editing GUI when using arrays