RAPacker.py: fix on package size boundary