Fix SECRET_KEY fail to be set