Fixed assertion failure on Ubuntu.