update castle to 3.2.1

fixes #1337