Fix a bug when checking if the skeleton is to be deleted

WTF, how is that not a syntax error???