fixed a few minor bugs due to slugging