Version 1.5.1

Important fixes in flag saving.