fixed costly error