Fix bug where pop_32bits and pop_64bits would not work as intended