fix daft bugs.