correcting flex issues