fix compile errors :(