Fix empty block error