Bug Fix

Fix calculation problem when changing model parameters