Composer gotoScene bug

--menu.lua -- on button composer.gotoScene( "settings", { effect = "slideLeft", time = 400 }  );

--settings.lua function scene:create( event ) composer.gotoScene( "menu", { effect = "slideLeft", time = 400 }  ); end

 
Appears black screen and app does not react to any action.

This bug appers and when i try to go to prev scene on android when presing back button:

if animation slideLeft not ended and i press back button - i getting black screen.

 
How i can get prev stage state?

like

if(prevScene.phase = "showEnd") ...