fixed error in option pannel and new database