fix compatibility issues with rails-observers