Fixed the bug when append the overlay/loading element

Signed-off-by: jssoscar
Version: 2.0.3.1
Date: 2014-5-4 18:08:05