Fixed redstone not working in some cases