Fixed the exceptions in the like function. There are still some bugs though