Avoid error if up or down are null
Solves problem with grass in ubuntu12.04