fixed removal of commands when a native alert is being shown