Fixed illegal promotion bug