fix NPE if no moves