Minor fixes for flash and mesh

Signed-off-by: mmuallem <melkar.muallem@hotmail.com>