Correct some warnings when quiting the application.
Try to correct the padding issue for factor smaller than 1..