Fixing refill error

I think it will fix current problems with refill.