bug with Array delete