Small fix for pop
Merge pull request #197 from NielsZeilemaker/pop_fix

Small fix for pop