Fixed two errors