Fixed bug in prefix handling.