Added construct dropdown function fixes #638.

Fixes #638