Fixed bug where pad would not work on initial load