bug fix in background position integer value computing