fixed function binding issue when loading
remerge and update cake-dog
fix initial bug