Fix bug when empty properties stack occurs.