1.8.7 compatability

A small change to allow for use in 1.8.7 projects.