Fixed bug in checking for log weights