fix bug of https://github.com/benliu723/FromlyAngularStrap/issues/31 & https://github.com/benliu723/FromlyAngularStrap/issues/27