Fix wrong logic caused by #1452