Removing deprecated call for flash message + avoiding error on accessing data on ArrayAccess implementation