ExecutePendingCommands Bug Fix