Some fixes for sequences