fixing bugs in compile run

Signed-off-by: Werner Macho <werner.macho@gmail.com>