Error when turning on s3 server side encryption

I followed the instructions on how to turn on SSE on deployment bucket, https://serverless.com/blog/serverless-v1.16.0/, when i do a SLS deploy it returns this error.

An error occurred (ValidationError) when calling the ValidateTemplate operation: Template format error: Unresolved resource dependencies [ServerlessDeploymentBucket] in the Resources block of the template.