fix bugs in save model with no 'dropout' attribute