Seg fault at ProgrammedController : solved