finally fixed this bug (which was just my fault)