fixing some surface-reaction bugs