fixed bug with short circuit of beam