Fix promotion bug

This commit fixes issue #108