fixed to compile on ubuntu