save layer in process, a bug to fix