src: fixed bug with nulll pointer exception on start