Fixed paint issue on ubuntu 14.04 onwards