Switch having multiple endpoints with on/off and level cluster

When we set the scene on device level using scene_store command then there state of the endpoints is not getting saved when we try to recall the scene by recall command of that scene id.

Please suggest us how to enable the scene on multi endpoint level.