Fixed error in andThen creation