Temporary fix of BCs

Temporary fix for avoiding underflow when applying side and bottom/top BCs at the same time.