fixed chaining error