small fix with problem with arrays