Fixed seg fault due to proto not being set