fix to credential store