all() exception fixed