fix bug

some compile bugs slipped past me