fixed that redirect problem