fixed some simple problems from the last revision