Fixed incorrect reference to this within a callback