Format physical ssim fix for out of bounds errors

@ndushay