small bugs to allow compile
(#616)