fix potential error introduced in prev. commit