bugfix array cast