On ergodicity of some cylinder flows